package me.monster.smarttraffic.ui.road;

import java.util.List;
import java.util.Map;

import me.monster.smarttraffic.base.BaseView;
import me.monster.smarttraffic.base.IPresenter;
import me.monster.smarttraffic.bo.RoadLight;

/**
 * @description
 * @author: Created jiangjiwei in 2020-02-14 10:19
 */
public interface RoadContract {
    interface View extends BaseView {
        void showLights(List<RoadLight> lightList);

        void bindSpinner(List<Map<String, String>> spinnerList);
    }

    interface Presenter extends IPresenter<View> {
        void fetchLightRules();

        /**
         * 先点查询，后选择排序规则
         */
        void compareLights(int compareRule);

        /**
         * 先选择排序规则，然后点击查询
         *
         * @param compareRule
         */
        void fetchLightAndCompare(int compareRule);

        /**
         * 先选择排序规则，然后点击查询
         */
        void fetchLight();

    }
}
